export interface Me {
  id: number;
  nickname: string;
  createdAt: string;
  token?: string | null | undefined;
}

export type MeUpdateInput = {
  nickname: string;
};

export type LoadMeFn = () => Promise<Me>;
export type UpdateMeFn = (input: MeUpdateInput) => Promise<Me>;

export type MeApis = {
  loadMe: LoadMeFn;
  updateMe: UpdateMeFn;
};
